package io.renren.modules.pro.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.pro.dao.ItemTaskDao;
import io.renren.modules.pro.entity.ItemTaskEntity;
import io.renren.modules.pro.service.ItemTaskService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("itemTaskService")
public class ItemTaskServiceImpl extends ServiceImpl<ItemTaskDao,ItemTaskEntity> implements ItemTaskService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        String title = (String)params.get("id");
        IPage<ItemTaskEntity> page = this.page(
                new Query<ItemTaskEntity>().getPage(params)
                , new QueryWrapper<ItemTaskEntity>().eq("id", title));
        return new PageUtils(page);
    }


}
